<?php

if (isset($_SESSION['admin'])){
    $connecter = "<a href='includes/destroySession.php'>Se Deconnecter <br><a href='#'>Backend</a></a>";
}else{
    $connecter = "<a href='logon.php'>Se connecter</a>";
}
?>

<div id="monitor">
    <div id="logo">logo</div>
    <div id="entete">Monitor</div>
    <div id="date">
        <?php echo date("d-m-Y");?><br>
        
        <?php echo $connecter; ?>
    </div>
</div>